The Week View component > FWeekView.getDataProvider()

 

FWeekView.getDataProvider()

Availability

Flash Player 6.

Usage

myWeekView_wkv.getDataProvider ()

Parameters

none

Returns

Returns a DataProvider of data associated with dates within the component.

Description

Returns a DataProvider of data associated with dates within the component. Each item within the the DataProvider will contain two fields, dateObj and data.

dateObj

A Date object representing the date that the date is associated with.

data

The data associated with the date.

 

Example

The following code associates data with a number of dates, and then uses getDataProvider to retrieve them.

var today = new Date();
var mom = new Date(54,6,27);
var dad = new Date(54,2,3);

myWeekView_wkv.setCellData("TODAY",today);
myWeekView_wkv.setCellData("Mom's Birthday",mom);

myWeekView_wkv.setCellData("Dad's Birthday",dad);
 
var dp = myWeekView_wkv.getDataProvider( );

for(var i = 0; i < dp.getLength(); i++)
{
	trace("Data: "+dp.getItemAt(i).data);
}

See also

FWeekView.setCellData()

FWeekView.setDataProvider()